<div class="row animate fadeIn">
    <form class="form-horizontal" id="">
    <div class="ibox-title" style="border:none;"><h5 style="color: #00afef"><i>View</i></h5>
    </div>
     <div class="ibox-content">
        <?php foreach ($offcr_data as $data) { ?>
            <div class="form-group">
                <label class="col-lg-3 control-label">Username:</label>
                <div class="col-lg-5">
                    <input type="text" id="" class="form-control" name="" value="<?php echo $data->user_name; ?>" readonly>
                </div>
             </div>
             <div class="form-group">
                <label class="col-lg-3 control-label">First Name:</label>
                 <div class="col-lg-5">
                    <input type="text" id="" class="form-control" name="" value="<?php echo $data->first_name; ?>" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Last Name:</label>
                 <div class="col-lg-5">
                    <input type="text" id=""class="form-control" name=""  value="<?php echo $data->last_name; ?>" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Inventory Role:</label>
                <div class="col-lg-5">
                    <select class = "chosen-select" name="" id ="" disabled>
                      <?php foreach ($officer as $offcr) { ?>
                        <option value="<?php echo $offcr->lookup_code; ?>" id="" <?php echo ($offcr->lookup_code == $data->role_code ? 'selected' : ''); ?> ><?php echo $offcr->meaning; ?></option>
                      <?php } ?>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-3 control-label">Enable</label>
                <div class="col-lg-5">
                    <input checked type="checkbox" class="i-checks" name="" value="ok" <?php echo ($data->enable_flag == 'Y' ? 'checked' : ''); ?> disabled>
                </div>
            </div>
          <?php } ?>
      </div>
    </form>


 
    
 </div>
 <script>
    $(document).ready(function(){
    $(".chosen-select").chosen({width:"100%;"}); 

     $('.i-checks').iCheck({
                    checkboxClass: 'icheckbox_square-green',
                    radioClass: 'iradio_square-green',
              });




      $('#viewX').click(function(){
            close_view();
       });
    });
 </script>  